<?php

namespace Controller\Category;

class Category extends \Controller\Base {

	public function actionIndex() {
		$this->setMenuPath('Article', 'Category');
		$pid = $this->getInt('categoryId');
        if ($pid) {
            $this->setMenuPath('Category_' . $pid, 'Category');
        }
		$all = \Data\Category::instance()->getLevelCategories(null, $pid);
		$this->assign('pid', $pid);
		$this->assign('all', $all);
		$this->display();
	}
}